package com.yehangtech.designpattern.结构型_适配器.mq;

import cn.hutool.json.JSONUtil;

import java.util.Date;

/**
 * 统⼀的MQ消息体
 */
public class RebateInfo {
    private String userId; // ⽤户ID
    private String bizId; // 业务ID
    private Date bizTime; // 业务时间
    private String desc; // 业务描述

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getBizId() {
        return bizId;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }

    public Date getBizTime() {
        return bizTime;
    }

    public void setBizTime(Date bizTime) {
        this.bizTime = bizTime;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public RebateInfo() {
    }

    public RebateInfo(String userId, String bizId, Date bizTime, String desc) {
        this.userId = userId;
        this.bizId = bizId;
        this.bizTime = bizTime;
        this.desc = desc;
    }

    @Override
    public String toString() {
        return JSONUtil.toJsonStr(this);
    }
}
